package com.wk.wms.mapper;

import com.wk.wms.entity.WareSku;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wk.wms.vo.SkuLockVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WareSkuMapper extends BaseMapper<WareSku> {

    List<WareSku> checkStock(SkuLockVO skuLockVO);

    void lockStock(SkuLockVO skuLockVO);

    void unLockStock(SkuLockVO skuLockVO);

    void decreaseStock(SkuLockVO skuLockVO);
}
